package com.guodexian.xiaomi.dao;


import com.guodexian.xiaomi.entity.Category;

import java.util.List;
import java.util.Map;


public interface CategoryDao {
    List<Category> find(int page, int limit, Map<String, Object> searchMap);
    long getCount(Map<String, Object> searchMap);
    int save(Category category);
    Category findByName(String name);
    int update(Category category);
    int delete(Long id);
    int deleteBatch(Long[] ids);
}